package com.xiaoq.matrix.activity.service;

import java.util.List;

import com.xiaoq.matrix.activity.entity.ActivityAttendentEntity;
import com.xiaoq.vo.PagingVo;

public interface IActivityAttendService {
	public List<ActivityAttendentEntity> findActivityAttendByAct(String activityId);
	
	public boolean addActivityAttend(ActivityAttendentEntity activityAttend);
	
	public List<ActivityAttendentEntity> findActivityAttendByUser(String userId, PagingVo pvo);
	
	/**
	 * 获取一个活动的报名总人数
	 * @param activityId
	 * @return
	 */
	public Long getAttendNums(String activityId);
	
	/**
	 * 查看一个用户是否已经报名
	 * @param userId
	 * @param activityId
	 * @return
	 */
	public boolean isUserAttend(String userId,String activityId);

}
